<nz-spin [nzSpinning]="isLoading">
  <div nz-row [nzGutter]="[8, 8]">
    <div nz-col nzXs="24" nzSm="24" nzMd="24" nzLg="12" nzXl="12">
      <nz-space>
        <input *nzSpaceItem nz-input placeholder="输入前缀查询，如：AC/1A " [(ngModel)]="prefix" style="width: 300px" />
        <button *nzSpaceItem nz-button nzType="primary" (click)="list()"> 获取Item对象 </button>
      </nz-space>
      <div style="margin-top: 8px">
        <textarea rows="10" nz-input [ngModel]="items | json" *ngIf="items"></textarea>
        <nz-empty *ngIf="!items"></nz-empty>
      </div>
    </div>

    <div nz-col nzXs="24" nzSm="24" nzMd="24" nzLg="12" nzXl="12">
      <nz-space>
        <input
          *nzSpaceItem
          nz-input
          placeholder="输入objectId, 多个使用','相隔"
          [(ngModel)]="statIds"
          style="width: 300px"
        />
        <button *nzSpaceItem nz-button nzType="primary" (click)="getStat()"> 获取StatObjectResponse对象 </button>
      </nz-space>
      <div style="margin-top: 8px">
        <textarea rows="10" nz-input [ngModel]="stats | json" *ngIf="stats"></textarea>
        <nz-empty *ngIf="!stats"></nz-empty>
      </div>
    </div>
  </div>
  <div nz-row [nzGutter]="[8, 8]">
    <div nz-col nz-col nzXs="24" nzSm="24" nzMd="24" nzLg="12" nzXl="12">
      <nz-space>
        <input
          *nzSpaceItem
          nz-input
          placeholder="输入objectId, 多个使用','相隔"
          [(ngModel)]="userMetadataIds"
          style="width: 300px"
        />
        <button *nzSpaceItem nz-button nzType="primary" (click)="getUserMetadata()"> 获取UserMetadata对象 </button>
      </nz-space>
      <div style="margin-top: 8px">
        <textarea rows="10" nz-input [ngModel]="userMetadatas | json" *ngIf="userMetadatas"> </textarea>
        <nz-empty *ngIf="!userMetadatas"></nz-empty>
      </div>
    </div>
  </div>
</nz-spin>
